package com.jason.login.vo;


import com.jason.login.constant.ResponseEnum;

public class Result<T> {

    private String errCode;

    private String message;

    private T data;

    public Result(ResponseEnum responseEnum) {
        this.errCode = responseEnum.getCode();
        this.message = responseEnum.getMessgae();
    }

    public Result() {

    }

    public Result(String errCode, String message) {
        this.errCode = errCode;
        this.message = message;
    }

    public Result(String errCode, String message, T data) {
        this.errCode = errCode;
        this.message = message;
        this.data = data;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
